package com.le.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 评论，在主题下面
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_reply")
public class Reply extends AbstractTopic implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer replyid;

    private Integer topicid;


    @TableField(exist = false) // 新增数据表中没有的属性
    private String uname;
    @TableField(exist = false)
    private String head;
    @TableField(exist = false)
    private String regtime;
}
